package com.zt.ztyh.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zt.ztyh.dto.LoanDto;
import com.zt.ztyh.entity.Loan;
import com.zt.ztyh.vo.loan.LoanVo;

import java.math.BigDecimal;
import java.util.List;


public interface LoanService extends IService<Loan> {

    Page<Loan> findLoans(Integer page, Integer limit,LoanDto loanDto);

    Page<LoanVo> findLoan(Integer page,Integer limit,LoanDto loanDto);

    BigDecimal selectUserLoan(LoanDto loanDto);

    void addLoan(String token,LoanDto loanDto);

    void updateLoan(String token,LoanDto loanDto);
}
